// workorder api

import axios from '@/utils/axios';

/**
 * 获取工单详情
 * @author LXBsmile
 * @date 2019-10-25
 * @param {Number} baseId 工单id
 * @returns {Object} 工单详情
 */
export function getOrderDetail(baseId) {
  return axios.get('/plat/work/baseflow', { params: { baseId } }).then(res => {
    if (res.code === 1) {
      return res.data;
    } else {
      throw res.msg;
    }
  })
}
